<?php

class PHPTextNode extends HTMLDOM {
	var $nodeType = DOM_PHP_TEXT_NODE;
	var $nodeName = "php text";
	var $nodeStyle = "inline";
	var $data;
	var $childNodes = null;
	var $attributes = null;
	
	function PHPTextNode($data, $document) {
		$this->data = $data;
		$this->document = $document;
	}
	
	function appendChild($node) {
		return;
	}
	
	function insertBefore($node, $before) {
		return;
	}
	
	function removeChild($node) {
		return null;
	}
	
	function hasChildNodes() {
		return false;
	}
	
	function cloneNode($deep = false) {
		return $this;
	}
	
	function toString() {
		return "<?php echo $this->data ?>";
	}
}
?>
